package operator;

public class Demo08 {
    public static void main(String[] args) {
        //三元运算符
        //x?y:z
        //如果x==ture,则结果为y,否则结果为z

        int score1=80;
        int score2=50;
        String type1=score1<60?"不及格":"及格";
        String type2=score2<60?"不及格":"及格";
        System.out.println(type1);
        System.out.println(type2);

    }
}
